/*
	created time:2018/4/11
	author:Chason
	describe:头部钻石(首页)
*/
class HeaderDiamonds  extends eui.Component{
	private addBtn:eui.Image;
	private label:eui.Label;
	public constructor() {
		super();
		 this.skinName = "headerDiamondsSkin"
	}
    protected childrenCreated(): void {
        super.childrenCreated();
        this.init();
    }

	  private init(): void {
        this.label.text = "5678";
        this.addBtn.addEventListener(egret.TouchEvent.TOUCH_TAP, this.touchAddBtn, this);
    }

    private touchAddBtn(e: egret.TouchEvent): void {
          console.log("touchAddBtn");
    }
}